package com.veterinaria.services;

import java.util.ArrayList;

import com.veterinaria.bean.ClienteBean;
import com.veterinaria.factory.DAOFactory;

public class ClienteImplements implements ClienteService{

	DAOFactory factory = DAOFactory.getFactory(1);
	ClienteService dao = factory.getCliente();
	
	@Override
	public ArrayList<ClienteBean> listarClientes(ClienteBean cli) throws Exception {
		return dao.listarClientes(cli);
	}

	@Override
	public ArrayList<ClienteBean> buscarClientes() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void grabarCliente(ClienteBean cli) throws Exception {
		dao.grabarCliente(cli);
	}

	@Override
	public void modificarCliente(ClienteBean cli) throws Exception {
		dao.modificarCliente(cli);
	}

	@Override
	public void eliminarCliente(ClienteBean cli) throws Exception {
		dao.eliminarCliente(cli);
	}

	@Override
	public ClienteBean obtenerCliente(ClienteBean cli) throws Exception {
		return dao.obtenerCliente(cli);
	}

}
